home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XSetInputFocus.z / XSetInputFocus
Encoding:
Text File  |  1998-10-30  |  6.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXSSSSeeeettttIIIInnnnppppuuuuttttFFFFooooccccuuuussss((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXSSSSeeeettttIIIInnnnppppuuuuttttFFFFooooccccuuuussss((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XSetInputFocus, XGetInputFocus - control input focus
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           XSetInputFocus(_d_i_s_p_l_a_y, _f_o_c_u_s, _r_e_v_e_r_t__t_o, _t_i_m_e)
  13.                 Display *_d_i_s_p_l_a_y;
  14.                 Window _f_o_c_u_s;
  15.                 int _r_e_v_e_r_t__t_o;
  16.                 Time _t_i_m_e;
  17.  
  18.           XGetInputFocus(_d_i_s_p_l_a_y, _f_o_c_u_s__r_e_t_u_r_n, _r_e_v_e_r_t__t_o__r_e_t_u_r_n)
  19.                 Display *_d_i_s_p_l_a_y;
  20.                 Window *_f_o_c_u_s__r_e_t_u_r_n;
  21.                 int *_r_e_v_e_r_t__t_o__r_e_t_u_r_n;
  22.  
  23.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  24.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  25.  
  26.           _f_o_c_u_s     Specifies the window, _P_o_i_n_t_e_r_R_o_o_t, or _N_o_n_e.
  27.  
  28.           _f_o_c_u_s__r_e_t_u_r_n
  29.                     Returns the focus window, _P_o_i_n_t_e_r_R_o_o_t, or _N_o_n_e.
  30.  
  31.           _r_e_v_e_r_t__t_o Specifies where the input focus reverts to if the
  32.                     window becomes not viewable.  You can pass
  33.                     _R_e_v_e_r_t_T_o_P_a_r_e_n_t, _R_e_v_e_r_t_T_o_P_o_i_n_t_e_r_R_o_o_t, or
  34.                     _R_e_v_e_r_t_T_o_N_o_n_e.
  35.  
  36.           _r_e_v_e_r_t__t_o__r_e_t_u_r_n
  37.                     Returns the current focus state (_R_e_v_e_r_t_T_o_P_a_r_e_n_t,
  38.                     _R_e_v_e_r_t_T_o_P_o_i_n_t_e_r_R_o_o_t, or _R_e_v_e_r_t_T_o_N_o_n_e).
  39.  
  40.           _t_i_m_e      Specifies the time.  You can pass either a
  41.                     timestamp or _C_u_r_r_e_n_t_T_i_m_e.
  42.  
  43.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  44.           The _X_S_e_t_I_n_p_u_t_F_o_c_u_s function changes the input focus and the
  45.           last-focus-change time.  It has no effect if the specified
  46.           time is earlier than the current last-focus-change time or
  47.           is later than the current X server time.  Otherwise, the
  48.           last-focus-change time is set to the specified time
  49.           (_C_u_r_r_e_n_t_T_i_m_e is replaced by the current X server time).
  50.           _X_S_e_t_I_n_p_u_t_F_o_c_u_s causes the X server to generate _F_o_c_u_s_I_n and
  51.           _F_o_c_u_s_O_u_t events.
  52.  
  53.           Depending on the focus argument, the following occurs:
  54.  
  55.           +o    If focus is _N_o_n_e, all keyboard events are discarded
  56.                until a new focus window is set, and the revert_to
  57.                argument is ignored.
  58.  
  59.           +o    If focus is a window, it becomes the keyboard's focus
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXSSSSeeeettttIIIInnnnppppuuuuttttFFFFooooccccuuuussss((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXSSSSeeeettttIIIInnnnppppuuuuttttFFFFooooccccuuuussss((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.                window.  If a generated keyboard event would normally
  75.                be reported to this window or one of its inferiors, the
  76.                event is reported as usual. Otherwise, the event is
  77.                reported relative to the focus window.
  78.  
  79.           +o    If focus is _P_o_i_n_t_e_r_R_o_o_t, the focus window is
  80.                dynamically taken to be the root window of whatever
  81.                screen the pointer is on at each keyboard event. In
  82.                this case, the revert_to argument is ignored.
  83.  
  84.           The specified focus window must be viewable at the time
  85.           _X_S_e_t_I_n_p_u_t_F_o_c_u_s is called, or a _B_a_d_M_a_t_c_h error results.  If
  86.           the focus window later becomes not viewable, the X server
  87.           evaluates the revert_to argument to determine the new focus
  88.           window as follows:
  89.  
  90.           +o    If revert_to is _R_e_v_e_r_t_T_o_P_a_r_e_n_t, the focus reverts to
  91.                the parent (or the closest viewable ancestor), and the
  92.                new revert_to value is taken to be _R_e_v_e_r_t_T_o_N_o_n_e.
  93.  
  94.           +o    If revert_to is _R_e_v_e_r_t_T_o_P_o_i_n_t_e_r_R_o_o_t or _R_e_v_e_r_t_T_o_N_o_n_e,
  95.                the focus reverts to _P_o_i_n_t_e_r_R_o_o_t or _N_o_n_e, respectively.
  96.                When the focus reverts, the X server generates _F_o_c_u_s_I_n
  97.                and _F_o_c_u_s_O_u_t events, but the last-focus-change time is
  98.                not affected.
  99.  
  100.           _X_S_e_t_I_n_p_u_t_F_o_c_u_s can generate _B_a_d_M_a_t_c_h, _B_a_d_V_a_l_u_e, and
  101.           _B_a_d_W_i_n_d_o_w errors.
  102.  
  103.           The _X_G_e_t_I_n_p_u_t_F_o_c_u_s function returns the focus window and the
  104.           current focus state.
  105.  
  106.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  107.           _B_a_d_V_a_l_u_e  Some numeric value falls outside the range of
  108.                     values accepted by the request.  Unless a specific
  109.                     range is specified for an argument, the full range
  110.                     defined by the argument's type is accepted.  Any
  111.                     argument defined as a set of alternatives can
  112.                     generate this error.
  113.  
  114.           _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a
  115.                     defined Window.
  116.  
  117.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  118.           XWarpPointer(3X11)
  119.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.